package com.lanqiao.testwork;

public class Test22 {

	public static void main(String[] args) {
		test();

	}

	/**
	 * 计算5的阶乘
	 */
	private static void test() {
		System.out.println(fun(5));
	}

	private static long fun(int i) {
		if (i == 1) {
			return 1;
		}
		long num = fun(i - 1);
		return num * i;

	}
}
